package com.sbl.bajw.pc.service;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sbl.bajw.common.MyBatisDao;
import com.sbl.bajw.mapper.StatisticsDao;

@Service
public class StatisticsService {
	
	@Resource
	private MyBatisDao gridDao;
	
	@Resource
	private StatisticsDao dao;
	
	public String StatisticsCameraAndHouse(HashMap<String, Object> parm){
		String result = gridDao.selectPage(StatisticsDao.class, parm, "StatisticsCameraAndHouse");
		return result;
	}
	
	public String getPcsCameraAndHouseUserList(HashMap<String, Object> parm){
		String result = gridDao.selectPage(StatisticsDao.class, parm, "getPcsCameraAndHouseUserList");
		return result;
	}
	
	public String StatisticsJQ(HashMap<String, Object> parm){
		String result = gridDao.selectPage(StatisticsDao.class, parm, "StatisticsJQ");
		return result;
	}
	
	public String getCameraUserStatisticsList(HashMap<String, Object> parm){
		String result = gridDao.selectPage(StatisticsDao.class, parm, "getCameraUserStatisticsList");
		return result;
	}
	
	public String StatisticsCar(HashMap<String, Object> parm){
		String result = gridDao.selectPage(StatisticsDao.class, parm, "StatisticsCar");
		return result;
	}
	
	public String getPcsCarUserStatisticsList(HashMap<String, Object> parm){
		String result = gridDao.selectPage(StatisticsDao.class, parm, "getPcsCarUserStatisticsList");
		return result;
	}
	
	public String StatisticsCarJq(HashMap<String, Object> parm){
		String result = gridDao.selectPage(StatisticsDao.class, parm, "StatisticsCarJq");
		return result;
	}
	
	public String getJqCarUserStatisticsList(HashMap<String, Object> parm){
		String result = gridDao.selectPage(StatisticsDao.class, parm, "getJqCarUserStatisticsList");
		return result;
	}
	
	public String StatisticsUser(HashMap<String, Object> parm){
		String result = gridDao.selectPage(StatisticsDao.class, parm, "StatisticsUser");
		return result;
	}
	
	public List<HashMap<String, Object>> downloadCameraAndHouseStatistics(HashMap<String, Object> parm){
		List<HashMap<String, Object>> list = dao.StatisticsCameraAndHouse(parm);
		return list;
	}
	
	public List<HashMap<String, Object>> downloadCameraUserStatistics(HashMap<String, Object> parm){
		List<HashMap<String, Object>> list = dao.getCameraUserStatisticsList(parm);
		return list;
	}
	
	public List<HashMap<String, Object>> downloadStatisticsJQ(HashMap<String, Object> parm){
		List<HashMap<String, Object>> list = dao.StatisticsJQ(parm);
		return list;
	}
}
